<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
   <h3>{$Think.lang.medal.award_to} :: <a href='{$user.user_id|format_user_url=$user['username']}' target='_blank'>{$user.username}</a></h3>
    <form name="cpform" method="post" action="__ACTION__" id="cpform" >
    <input type="hidden" name="op" value="save" />
    <input type="hidden" name="user_id" value="{$user.user_id}" />
    <table class="tb tb2 fixpadding">
        <tr>
            <td></td>
            <th>{$Think.lang.medal.medal_image}</th>
            <th>{$Think.lang.medal.medal_name}</th>
            <th>{$Think.lang.description}</th>
            <th>{$Think.lang.medal.medal_expiration}</th>
            <th>{$Think.lang.mark}</th>
        </tr>
        <volist name="medalList" id="vo">
        <tr class="item">
            <td></td>
            <td><img src="__PUBLIC__/Images/Medals/{$vo.image}" title="{$vo.name}" alt="{$vo.name}" /></td>
            <td>{$vo.name}</td>
            <td>{$vo.description}</td>
            <td><eq name="vo.expiration" value="0">{$Think.lang.medal.never_expire}<else/>{$vo.expiration}</eq></td>
            <td class="td22"><input class="checkbox" type="checkbox" name="medals[]" value="{$vo.medal_id}" <in name="vo.medal_id" value="$user.medals">checked</in> /></td>
        </tr>
        </volist>
        <tr class="nobg">
            <td colspan="5"><div class="fixsel right"><input type="submit" class="btn" name="medalsubmit" value="{$Think.lang.submit}" /></div></td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'medals')" /><label for="chkall">Check All</label></td>
        </tr>    
    </table>
    </form>
</div>

<include file="Public:footer" />
